package cn.information.utils;


import cn.information.bean.Gysxx;
import cn.information.bean.User;
import cn.information.dao.GysxxDao;
import cn.information.view.MainUI;

public class Test {//ceshi1
    public static void main(String[] args, User user) {
        new MainUI(user).setVisible(true);
        GysxxDao gysxxDao = new GysxxDao();
        for (Gysxx gysxx : gysxxDao.findAll()) {
            System.out.println(gysxx.getGysid()+gysxx.getGysname()+gysxx.getGysadress()+gysxx.getGysphone());
        }

    }
}




////        Connection conn = DButil.getConnection();
////        //查询 todo
////        DButil.close(conn);
////插入
//UserDao userDao = new UserDao();
//User u = new User();
//        u.setUname("lll");
//        u.setPaswrd("123999");
//        u.setPurview(2);
//        userDao.add(u);